# people/serializers.py

from rest_framework import serializers
from .models import ExcelFile, Person

class ExcelFileUploadSerializer(serializers.Serializer):
    file = serializers.FileField()
    date = serializers.DateField()
    device_id = serializers.CharField()

class ExcelFileSerializer(serializers.ModelSerializer):
    class Meta:
        model = ExcelFile
        fields = '__all__'

class PersonSerializer(serializers.ModelSerializer):
    class Meta:
        model = Person
        fields = '__all__'
